package com.whp.openapi.service;

import com.whp.openapi.common.ResponseResult;
import com.whp.openapi.common.ResultTable;
import com.whp.openapi.entity.AdminUser;
import com.whp.openapi.entity.Menu;

import java.util.List;

/**
 * @author whp
 * @date 2021/11/23
 */
public interface AdminUserService {

    AdminUser getUserByEmail(String email);
    
    AdminUser doLogin(String email, String password);

    ResultTable table(Integer page, Integer limit, String realName, String email, Integer status);

    List<Integer> getUserRole(Integer userId);

    ResponseResult assignRole(Integer userId, Integer[] roleIds);

    ResponseResult delUsers(Integer[] ids);

    ResponseResult addUser(AdminUser user);

    ResponseResult updateUser(AdminUser user);
}
